Without this the tests never succeeded because they were comparing
loadEvent to undefined resulting in the icon not changing as it
should.
https://bugzilla.gnome.org/show_bug.cgi?id=780606
},
_onLoadChanged: function(view, loadEvent) {
- if (loadEvent == WebKit.LOAD_STARTED) {
+ if (loadEvent == WebKit.LoadEvent.STARTED) {
this._headerBar.setSecurityIcon(PortalHelperSecurityLevel.NOT_YET_DETERMINED);
- } else if (loadEvent == WebKit.LOAD_COMMITTED) {
+ } else if (loadEvent == WebKit.LoadEvent.COMMITTED) {
let tlsInfo = this._webView.get_tls_info();
let ret = tlsInfo[0];
let flags = tlsInfo[2];